<?php
if (isset($closeModalbox) && $closeModalbox) 
    echo "<div id='closeModalbox'></div>";

if ($ajax->isAjax()) 
{

	echo $ajax->form('edit', 'user', array(
		'model'    => 'User',
		'url'      => array( 'controller' => 'users', 'action' => 'edit'),
		'update'   => 'MB_content',
		'complete' => 'closeModalbox()'
	));
    echo $this->element('user_forms/ajax/admin_edit');
 }
 else
 {
    echo $this->element('user_forms/default/admin_edit');
 }
?>
